package com.bsoft.gol.hcs.specialist.dao;

import ctd.persistence.annotation.DAOMethod;
import ctd.persistence.annotation.DAOParam;
import org.atag.dao.ext.HibernateExtendDAO;
import com.bsoft.gol.hcs.specialist.entity.FusAfterPlanProduceRecord;

/**
 * 院后随访计划生产记录表(FusAfterPlanProduceRecord)表数据库访问层
 *
 * @author neoLin
 * @since 2022-05-29 19:15:03
 */
public abstract class FusAfterPlanProduceRecordDAO extends HibernateExtendDAO<FusAfterPlanProduceRecord> {

	/**
	 * 根据子路径id和就诊记录信息查询院后随访计划生产记录
	 *
	 * @param routeDetailId
	 * @param organizationId
	 * @param patientType
	 * @param visitNo
	 * @return specialist.entity.FusAfterPlanProduceRecord
	 * @throws
	 * @author tongtp
	 * @date 2022/6/2 16:03
	 */
	@DAOMethod(sql = " from FusAfterPlanProduceRecord  where  routeDetailId = :routeDetailId and " +
			" organizationId = :organizationId and patientType = :patientType and visitNo = :visitNo")
	public abstract FusAfterPlanProduceRecord getByRouteDetailId(@DAOParam("routeDetailId") Long routeDetailId,
																 @DAOParam("organizationId") String organizationId,
																 @DAOParam("patientType") Integer patientType,
																 @DAOParam("visitNo") String visitNo);
}


